package memberController;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import vo.ZipcodeVo;
import dao.MemberDao;

@Controller
public class ZipcodeController {
	
	@Autowired
	MemberDao mdao;

	@RequestMapping(value="/project/member/search_addr.do")
	public ModelAndView exe(String dong) throws Exception {
		System.out.println(dong);
		
		List<ZipcodeVo> zlist = mdao.selectAddr(dong);
		ModelAndView mv = new ModelAndView();
		mv.addObject("zlist", zlist);
		mv.setViewName("../member/searchaddr.jsp");
		return mv;
	}

}